# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=osmctools
pkgver=0.9
pkgrel=0
pkgdesc="A few really fast tools to convert, filter and update OpenStreetMap data files"
url="https://gitlab.com/osm-c-tools/osmctools"
arch="all"
license="AGPL-3.0-only"
makedepends="autoconf automake zlib-dev"
source="https://gitlab.com/osm-c-tools/osmctools/-/archive/$pkgver/osmctools-$pkgver.tar.gz"
options="!check" # no tests included

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
6e51646e9291b53ce109f579c555c1eb9e6853452c81caebd530aa1be56aa3d313331a3544375f187c9d26888e4a330774f2acd6bdbb3baadf1a2db330430940  osmctools-0.9.tar.gz
"
